#include "timerimpl.h"

CTimerImpl::CTimerImpl()
{
}
CTimerImpl::~CTimerImpl(void)
{
    logi("CTimerImpl::~CTimerImpl");
}
HRESULT CTimerImpl::BindEvloop(ioevloop_t* loop)
{
    return S_OK;
}
HRESULT CTimerImpl::Start()
{
    return S_OK;
}
HRESULT CTimerImpl::Stop()
{
    return S_OK;
}
HRESULT CTimerImpl::SetSec(int isec)
{
    return S_OK;
}
HRESULT CTimerImpl::Bind(IBase* pBase)
{
    rc_error(pBase != NULL, E_FAIL);
    return pBase->QueryInterface(IID_ITimerProc, (void**)&m_pTimerProc);
}
HRESULT CTimerImpl::UnBind()
{
    rc_error(m_pTimerProc.m_p != NULL, E_FAIL);
    m_pTimerProc.dispose();
    return S_OK;
}
crtid CTimerImpl::GetId()
{
    return m_cid;
}
HRESULT CTimerImpl::SetId(crtid id)
{
    m_cid = id;
    return S_OK;
}
